/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ec.com.farmaciassantamartha.comprobantes.portal.hbn;

import ec.com.farmaciassantamartha.comprobantes.portal.bean.Comprobante;
import ec.com.farmaciassantamartha.comprobantes.portal.exception.DataAccessLayerException;
import java.util.List;

/**
 *
 * @author Rolando
 */
public class ComprobanteDaoHbn extends AbstractHbnDao {

    public ComprobanteDaoHbn() {
        super();
    }

    /**
     * Insert a new Comprobante into the database.
     * @param Comprobante
     */
    public void save(Comprobante comprobante) throws DataAccessLayerException {
        super.save(comprobante);
    }

    /**
     * Updates a new Comprobante into the database.
     * @param comprobante
     */
    public void update(Comprobante comprobante) throws DataAccessLayerException {
        super.update(comprobante);
    }

    /**
     * Delete a detached Comprobante from the database.
     * @param comprobante
     */
    public void delete(Comprobante comprobante) throws DataAccessLayerException {
        super.delete(comprobante);
    }

    /**
     * Find an Event by its primary key.
     * @param id
     * @return
     */
    public Comprobante find(Long id) throws DataAccessLayerException {
        return (Comprobante) super.find(Comprobante.class, id);
    }

    /**
     * Lista todos los Actors de la base de datos
     * @return
     */
    public List findAll() throws DataAccessLayerException {
        return super.findAll(Comprobante.class);
    }
}
